//
//  FileDownTTPresonter.h
//  TTKit
//
//  Created by Apple on 2017/11/14.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TTPresonter.h"

/**
 *  下载事件监听接口基类
 */
@protocol DownListener <Listener>
@optional
- (void)onDownFail:(NSString*)url;
- (void)onDownSucessed:(NSString*)url;
- (void)onDownProgress:(NSString*)url progress:(float)progress;
@end


@interface FileDownPresonter : TTPresonter
-(void)downFile:(NSString*)url
       filePath:(NSString*)filePath;
//TaskManager Motheds
-(Boolean)resume:(NSString *)url;
-(void)cancel:(NSString *)url;
-(Boolean)isExist:(NSString *)url;
-(int)Count;
@end
